import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App'
import './index.css'
import 'antd/dist/antd.less'
import { AppProvider } from './context/app-context'
import { BrowserRouter } from 'react-router-dom'

const ROOT_DOM_ID = 'root'

const rootDom = document.getElementById(ROOT_DOM_ID)

if (rootDom) {
  ReactDOM.createRoot(rootDom).render(
    <BrowserRouter>
      <AppProvider>
        <App />
      </AppProvider>
    </BrowserRouter>
  )
}
